package ooday01;
/** 学生类的测试类 */
public class StudentTest {
    public static void main(String[] args) {

        //创建一个学生对象
        Student sc=new Student("李四",25,"jsd2302","001");

        //访问成员变量
        /*
        sc.name="张三";
        sc.age=24;
        sc.stuId="001";

         */

        //调用方法
        sc.study();
        sc.sayHi();
        sc.playWith("李四");

        //直接调用方法，会给所有成员变量赋默认值
        //默认值为null
        Student ww=new Student("王五",23,"jsd2302","002");
        ww.study();
        ww.sayHi();
        ww.playWith("李四");



    }
}
